<template>
  <div>
      <a href="#" @click.prevent="skip1">首页</a>
      <a href="#" @click.prevent="skip2">分类</a>
      <a href="#" @click.prevent="skip3">订单</a>
      <a href="#" @click.prevent="skip4">我的</a>
      <router-view></router-view>
  </div>
</template>

<script>
export default {
         data(){
          return{

          }
         },
         methods:{
          skip1(){
            this.$router.push({
              name:'Home'
            })
          },
           skip2(){
            this.$router.push({
              name:'Class'
            })
          },
           skip3(){
            this.$router.push({
              name:'Order'
            })
          },
           skip4(){
            this.$router.push({
              name:'Score'
            })
          }
         }
}
</script>

<style>

</style>